import axios from "../utils/request";
let {get, post } = axios


//登录
export const login = data => post("/login", data);
// 退出登录
export const logout = data => post("/logout", data);
// 首页展示
export const about = data => get("/about", data);
// 项目列表
export const projects = data => get("/projects", data);
// 项目详细配置
export const box = data => get("/box", data);
export const boxShort = data => get("/box_short", data);
// 收藏或取消
export const collection = data => post("/collection", data);
// 数据详情
export const variant = data => get("/variant", data);
// 折线图数据
export const chart = data => get("/chart", data);
// 阈值列表
export const thresholdList = data => get("/threshold", data);
// 增加阈值

// 微信信息
export const wechart = data => get("/wechart", data);
// 音乐列表
export const getMusic = data => post("/music", data);
// 上传文件
export const uploadFile = data => post("/upload", data);
// 页面项目列表
export const home = data => get("/home", data);
// 丰佳显示
export const fengJiaData = data => post("/fengjia", data);
// 手机端 项目列表
export const projectList = data => post("/project_list", data);
// 传感器列表
export const sensorList = data => post("/sensor_list", data);
// 数据列表
export const sensorData = data=>post("/sensor_data", data);
